package com.ming.yygh.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ming.yygh.model.order.OrderInfo;
import com.ming.yygh.vo.order.OrderCountQueryVo;

import java.util.Map;

/**
 * @author Light
 * @date 2021/12/22 18:24
 */
public interface OrderService extends IService<OrderInfo> {

    /**
     * 生成挂号订单
     *
     * @param scheduleId
     * @param patientId
     * @return
     */
    String saveOrder(String scheduleId, String patientId);

    /**
     * 根据订单id查询订单详情
     *
     * @param orderId
     * @return
     */
    OrderInfo getOrder(String orderId);

    /**
     * 取消预约
     *
     * @param orderId
     * @return
     */
    Boolean cancelOrder(String orderId);

    /**
     * 就诊提醒
     */
    void patientTips();


    /**
     * 预约统计
     *
     * @param orderCountQueryVo
     * @return
     */
    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);
}
